package cn.edu.java.stream.A创建流;

import java.util.Arrays;
import java.util.stream.Stream;

public class ArrayDemo {
    public static void main(String[] args) {
        String[] array = {"apple", "banana", "orange"};
        Stream<String> stream = Arrays.stream(array);

        stream.forEach(System.out::println);
    }
}
